package com.ayoka.parenting;


/**
 * Created by wayne on 2017/11/28.
 */

public class Constants {


    public static final String COACH_HAND_BOOK = "https://cdn.ayoka.cn/upload/focusgroup/habashouce.pdf";
    public static String SERVICE_AGREEMENT_URL = "https://cdn.ayoka.cn/protocal.html";

    public static final String APP_LOCAL_VERSION = "APP_LOCAL_VERSION";
    // 授权微信登录的返回的code
    public static final String WX_AUTHORIZATION_CODE = "WX_AUTHORIZATION_CODE";

    //替换为申请到的app id
    public static final String WX_APP_ID = "wx6b49a7ccd443735a";

    public static final String WX_APP_SECURITY = "";
    public static final String WX_PARENT_APP_KEY = ""; // KEY是商户秘钥

    public static final int WX_ERROR_CODE = 300;
    public static final int WX_ERROR_TOKEN = 401;
    // 腾讯bugly
    public static final String TENCENT_BUGLY_APPID = "fb15dad715";
    // 腾讯实时音视频
    public static final int TENCENT_LIVE_APPID = 1400127140;
    // 权限管理请求码
    public static final int BASIC_PERMISSION_REQUEST_CODE = 0x999;

    public static String TEST_API_URL = "https://api.card.headin.cn/HabaFocusTesting/";

    public static String PRODUCT_API_URL = "https://api.ayoka.cn/HabaFocusTesting/";

    public static String TEST_BASE_URL = "https://api.card.headin.cn/";

    public static String PRODUCT_BASE_URL = "https://api.ayoka.cn/";

    public static final String VERIFY_WEBVIEW_URL = "https://cdn.ayoka.cn/nvc.html";

    // api服务器
    public static String getBaseUrl() {
        if (BuildConfig.DEBUG) {
            // 测试服务器
            return TEST_BASE_URL;
        }
        // 正式服务器
        return PRODUCT_BASE_URL;
    }

    // api服务器
    public static String getBaseApiUrl() {
        if (BuildConfig.DEBUG) {
            // 测试服务器
            return TEST_API_URL;
        }
        // 正式服务器
        return PRODUCT_API_URL;
    }

    public static class ClassroomType {
        public static int GROW = 0;
        public static int TEST = 1;
    }

    public static class ManagerType {
        public static int MANAGER = 0;
        public static int CARE = 1;
    }

    public static class TopicOperation {

        public static final int TYPE_JOIN = 11;
        public static final int TYPE_QUIT = 22;
        public static final int TYPE_DELETE = 33;
        public static final int TYPE_TOP = 44;
        public static final int TYPE_CANCEL_TOP = 55;
        public static final int TYPE_PRAISE = 66;
        public static final int TYPE_CANCEL_PRAISE = 77;
    }
}